<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<form method="post" action="">
	<input name="action" value="Auctions_Manager_Search" type="hidden">
	<table width="100%">
		<tbody>
			<tr>
				<td height="40" colspan="4" class="sectionheading bottom-border">
					Auctions Manager
				</td>
			</tr>
			<tr>
				<td align="left"><s:a href="showProcessClosedAuctions.htm" cssClass="navi-link">Process Closed Auctions</s:a>
			  </td>
				<td align="left"><s:a href="showAutomateProcessing.htm" cssClass="navi-link">Automate Processing</s:a>
			  </td>
				<td align="left"><s:a href="showStatistics.htm" cssClass="navi-link">View Log</s:a>
			  </td>
			</tr>


			<tr>
				<td align="right" class="verdana12blacknormal">
					Search for:				</td>

				<td align="left" class="verdana12blacknormal">
					<input name="Terms" type="text" class="Textfiled-border" value="" size="40">
			  </td>
				<td align="left" class="verdana12blacknormal">
					<select name="Search_By" class="Textfiled-border">
						<option value="Keywords" selected="selected">
							Keywords
						</option>
						<option value="Account">
							Account
						</option>
						<option value="ID">
							ID
						</option>
						<option value="Location">
							Location
						</option>
						<option value="Country">
							Country
						</option>

						<option value="Region">
							Region
						</option>
						<option value="Language">
							Language
						</option>
				  </select>
			  </td>
				<td align="left" class="verdana12blacknormal">
					<s:submit value="Search" name="Search" type="image"
						src="../Admin-Images/search-btn.gif" theme="simple" title="Search"/>
			  </td>
			</tr>
			<tr>
			<td>
				<a href="#" class="navi-link"><B>Main</B></a> &gt;
			</td>
		</tr>
		<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Automobiles(15)</a> </td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Books(49)</a> </td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Business, Office &amp; Industrial(5)</a></td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Clothing &amp; Accessories(1)</a></td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Coins, Paper money &amp; Stamps(0)</a></td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Collectibles(4)</a></td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Computers &amp; Internet(10)</a> </td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Consumer electronics(0)</a></td>
      	</tr>
      	<tr>
      		<td class="verdana12blacknormal" valign="top"><a href="#" class="navi-link">Dolls &amp; Bears(0)</a></td>
      	</tr>
		</tbody>
  </table>
	<div>
		<center>
			<table>
				<tbody>
					<tr>
						<td align="left"
							class="verdana12darkgreybold">
							<b>Sort by <a href="#" class="navi-link" style="cursor: pointer;" >Photo</a> | <a href="#" class="navi-link"
								style="cursor: pointer;">Title</a> | <a href="#" class="navi-link"
								style="cursor: pointer;">Price</a> | <a href="#" class="navi-link"
								style="cursor: pointer;">Bids</a> | <a href="#" class="navi-link"
								style="cursor: pointer;">Time left&nbsp;</a><a
								style="cursor: pointer;" href=""></a> </b>						</td>
					</tr>
				</tbody>
			</table>
		</center>

	</div>


			<table width="100%" class="Textfiled-border" cellpadding="0" cellspacing="0">
				<tbody>
					<tr height="25">
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Type
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Title
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Fees
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Due
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Photo
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Quantity
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Price
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="right-border verdana12darkgreybold">
							Bids
						</td>
						<td align="center" bgcolor="#E9E9E9"
							class="verdana12darkgreybold">
							Time left
						</td>
					</tr>

					<tr>
						<td align="center" class="right-border verdana12blacknormal">
							<font>Type</font>
						</td>
						<td align="center" class="right-border verdana12blacknormal">
							<a href="<%= basePath + "showItem.htm" %>" target="_blank" class="navi-link"
								style="cursor: pointer;"><font>Ameisen</font> </a>
							<img src="../images/Icon_MustGo.gif" title="MustGo">
							<img src="../images/buyitnow.gif" title="Buy Now">
							<img src="../images/featured.gif" title="Featured">
						</td>

						<td align="center" class="right-border verdana12blacknormal">
							<font>Euro51.4</font>
						</td>
						<td align="center" class="right-border verdana12blacknormal">
							-
						</td>
						<td align="center" class="right-border verdana12blacknormal">
							<img src="../images/no_image.gif" alt="Photo">
						</td>
						<td align="center" class="right-border verdana12blacknormal">
							100000
						</td>
						<td align="center" class="right-border verdana12blacknormal">
							5.00 Euro
						</td>
						<td align="center" class="right-border verdana12blacknormal">
							1
						</td>

						<td align="center" class="verdana12blacknormal">
							307 Days+
						</td>
					</tr>

					<tr>
						<td align="left" bgcolor="#E9E9E9" class="verdana12darkgreybold"
							colspan="9">
							<table>
								<tbody>
									<tr>
										<td align="center" valign="middle" class="navi-link">
											<a href="#" class="navi-link">Close</a>
										</td>
										<td align="center" valign="middle">
											<input name="X_Close_1" value="1215087644" type="checkbox">
										</td>
										<td align="center" valign="middle" class="navi-link">
											<a href="#" class="navi-link">Delete</a>
										</td>
										<td align="center" valign="middle">
											<input name="X_Del_1" value="1215087644" type="checkbox">
										</td>
										<td align="center" valign="middle" class="navi-link">
											<a href="#" class="navi-link">Relist</a>

										</td>
										<td align="center" valign="middle">
											<input name="X_Relist_1" value="1215087644" type="checkbox">
										</td>
										<td align="center" valign="middle" class="navi-link">
											<a href="#" class="navi-link">Cancel Bids</a>
										</td>
										<td align="center" valign="middle">
											<input name="X_CancelBids_1" value="1215087644" type="checkbox">
										</td>

										<td align="center" valign="middle" class="navi-link">
											<a href="#" class="navi-link">down</a>
										</td>
										<td align="left" bgcolor="#E9E9E9"
											class="verdana12darkgreybold"><br><br></td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>


<script language="JavaScript">
<!--
function Close_All() {
    Uncheck_All();
    for (var j = 1; j < 26; j++) {
      box = eval("document.Auctions_Manager.X_Close_" + j);
      box.checked = true;
    }
}
function Relist_All() {
    Uncheck_All();
    for (var j = 1; j < 26; j++) {
      box = eval("document.Auctions_Manager.X_Relist_" + j);
      box.checked = true;
    }
}
function Delete_All() {
    Uncheck_All();
    for (var j = 1; j < 26; j++) {
      box = eval("document.Auctions_Manager.X_Del_" + j);
      box.checked = true;
    }
}
function CancelBids_All() {
    Uncheck_All();
    for (var j = 1; j < 26; j++) {
      box = eval("document.Auctions_Manager.X_CancelBids_" + j);
      box.checked = true;
    }
}
function Uncheck_All() {
    for (var j = 1; j < 26; j++) {
      box = eval("document.Auctions_Manager.X_Del_" + j);
      box.checked = false;
      box = eval("document.Auctions_Manager.X_Close_" + j);
      box.checked = false;
      box = eval("document.Auctions_Manager.X_Relist_" + j);
      box.checked = false;
      box = eval("document.Auctions_Manager.X_CancelBids_" + j);
      box.checked = false;
    }
}

function Uncheck_One_Entry(j) {
      box = eval("document.Auctions_Manager.X_Del_" + j);
      box.checked = false;
      box = eval("document.Auctions_Manager.X_Close_" + j);
      box.checked = false;
      box = eval("document.Auctions_Manager.X_Relist_" + j);
      box.checked = false;
      box = eval("document.Auctions_Manager.X_CancelBids_" + j);
      box.checked = false;
}

function Delete_Item(j) {
      Uncheck_One_Entry(j);
      box = eval("document.Auctions_Manager.X_Del_" +j);
      box.checked = ! box.checked;
}

function Relist_Item(j) {
      Uncheck_One_Entry(j);
      box = eval("document.Auctions_Manager.X_Relist_" +j);
      box.checked = ! box.checked;
}

function Close_Item(j) {
      Uncheck_One_Entry(j);
      box = eval("document.Auctions_Manager.X_Close_" +j);
      box.checked = ! box.checked;
}

function CancelBids_Item(j) {
      Uncheck_One_Entry(j);
      box = eval("document.Auctions_Manager.X_CancelBids_" +j);
      box.checked = ! box.checked;
}
// -->
</script>
				</tbody>
			</table>
			<table border="0" cellpadding="2" cellspacing="0" width="97%">
				<tbody>
					<tr>
						<td align="left" width="40%" class="verdana12blacknormal">
							Showing 1 - 25 of 2243
						</td>
						<td align="right" width="25%">
							&nbsp;
							<a href="#" class="navi-link">Next &gt;&gt;</a>
						</td>

					</tr>
				</tbody>
			</table>

	<br>
	<table width="100%">
		<tbody>
			<tr>
				<td colspan="2" align="center" nowrap="nowrap">
					<img style="cursor: pointer;" onclick="Close_All();" src="../Admin-Images/close-all-btn.gif" title="Close All">

					<img style="cursor: pointer;"
						onclick="Delete_All();" src="../Admin-Images/delete-all-btn.gif"
						alt="Delete All" title="Delete All">

					<img style="cursor: pointer;"
						onclick="Relist_All();" src="../Admin-Images/relist-all-btn.gif"
						alt="Relist All" title="Relist All">
					<img style="cursor: pointer;"
						onclick="CancelBids_All();"
						src="../Admin-Images/cancel-bids-btn.gif" alt="Cancel Bids" title="Cancel Bids">
					<img style="cursor: pointer;"
						onclick="Uncheck_All();" src="../Admin-Images/uncheck-all-btn.gif"
						alt="Uncheck All" title="Uncheck All">				</td>
			</tr>

			<tr>
				<td align="center">
					<br>
					<s:submit value="Submit" name="Submit" type="image"
						src="../Admin-Images/submit-changes-btn.gif" theme="simple" title="Submit Changes"/>

					<img style="cursor: pointer;"
						onclick="document.getElementById('form').reset();"
						src="../Admin-Images/reset-button.gif" alt="Reset" title="Reset">			  </td>
			</tr>

		</tbody>
  </table>
</form>